home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / util / gnu / sed_2_05.lha / sed-2.05 / rx.ch < prev    next >
Text File  |  1995-01-19  |  2KB  |  92 lines

  1. Changes for RX.C by Andreas Scherer, January 19, 1995.
  2.  
  3. @x l.210
  4. char *alloca ();
  5. @y
  6. char *alloca (unsigned);
  7. @z
  8.  
  9. @x l.272
  10. #if HAVE_STRING_H || STDC_HEADERS
  11. @y
  12. #if defined(HAVE_STRING_H) || defined(STDC_HEADERS)
  13. @z
  14.  
  15. @x l.2758
  16. qlen (q)
  17.      struct rx_superstate * q;
  18. @y
  19. qlen (
  20.      struct rx_superstate * q)
  21. @z
  22.  
  23. @x l.2771
  24. check_cache (cache)
  25.      struct rx_cache * cache;
  26. @y
  27. check_cache (
  28.      struct rx_cache * cache)
  29. @z
  30.  
  31. @x l.3186
  32. supersetcmp (va, vb)
  33.      void * va;
  34.      void * vb;
  35. @y
  36. supersetcmp (
  37.      void * va,
  38.      void * vb)
  39. @z
  40.  
  41. @x l.4241
  42.   boolean prev_prev_backslash = ((prev > pattern) && (prev[-1] == '\\'));
  43.  
  44.     return
  45.  
  46.       (/* After a subexpression?  */
  47.        ((*prev == '(') && ((syntax & RE_NO_BK_PARENS) || prev_prev_backslash))
  48.        ||
  49.        /* After an alternative?  */
  50.        ((*prev == '|') && ((syntax & RE_NO_BK_VBAR) || prev_prev_backslash))
  51.        );
  52. @y
  53.   boolean prev_prev_backslash = ((prev > pattern) && (prev[-1] == '\\'));
  54.  
  55.     return ((boolean)
  56.  
  57.       (/* After a subexpression?  */
  58.        ((*prev == '(') && ((syntax & RE_NO_BK_PARENS) || prev_prev_backslash))
  59.        ||
  60.        /* After an alternative?  */
  61.        ((*prev == '|') && ((syntax & RE_NO_BK_VBAR) || prev_prev_backslash))
  62.        ));
  63. @z
  64.  
  65. @x l.4272
  66.   return
  67.     (
  68.      /* Before a subexpression?  */
  69.      ((syntax & RE_NO_BK_PARENS)
  70.       ? (*next == ')')
  71.       : (next_backslash && next_next && (*next_next == ')')))
  72.     ||
  73.      /* Before an alternative?  */
  74.      ((syntax & RE_NO_BK_VBAR)
  75.       ? (*next == '|')
  76.       : (next_backslash && next_next && (*next_next == '|')))
  77.      );
  78. @y
  79.   return
  80.     ((boolean)(
  81.      /* Before a subexpression?  */
  82.      ((syntax & RE_NO_BK_PARENS)
  83.       ? (*next == ')')
  84.       : (next_backslash && next_next && (*next_next == ')')))
  85.     ||
  86.      /* Before an alternative?  */
  87.      ((syntax & RE_NO_BK_VBAR)
  88.       ? (*next == '|')
  89.       : (next_backslash && next_next && (*next_next == '|')))
  90.      ));
  91. @z
  92.